package com.sina.shop.manage.service.foot;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.foot.Foot;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA
 * description:
 * 段浩杰 2018-01-14 20:41
 */
public interface FootManageService extends BaseService {

    Foot getFootById(Long id);

    int deleteFoot(Long id) throws DataException, UpdateException;

    Foot saveFoot(Foot foot) throws CreateException, ResourceExistsException, DataException;

    Foot updateFoot(Foot foot) throws UpdateException, DataException;

    List<Map<String, Object>> getFootList(Foot foot, Long count[]);

}
